﻿@model Abp.Application.Services.Dto.PagedResultOutput<MyCompanyName.AbpZeroTemplate.Daybooks.Dto.DaybookListDto>
@{
    ViewBag.Title = "Manager";
    ViewBag.CurrentPageName = MyCompanyName.AbpZeroTemplate.Web.Navigation.PageNames.App.Okr.Daybook_Manager;
}

<div class="portlet">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-bell-o"></i>Manager
        </div>
        @*<div class="tools">
                <a href="javascript:;" class="collapse">
                </a>
                <a href="#portlet-config" data-toggle="modal" class="config">
                </a>
                <a href="javascript:;" class="reload">
                </a>
                <a href="javascript:;" class="remove">
                </a>
            </div>*@
    </div>
    <div class="portlet-body">
        <div class="table-scrollable">
            <table class="table table-striped table-bordered table-advance">
                <thead>
                    <tr>
                        <th>
                            #
                        </th>
                        <th>
                            AccountName
                            |
                            BookDay
                        </th>
                        <th>
                            items
                        </th>
                        <th>
                            Remark
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.Items)
                    {
                        <tr>
                            <td>@item.Id</td>
                            <td>
                                @item.AccountName
                            <br /><br />
                            @item.BookDay.ToString("yyyy-MM-dd")
                            @item.Category
                        </td>
                        <td>
                            @Html.Action("DayItems", new { id = item.Id })
                        </td>
                        <td>@item.Remark</td>
                    </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>